package com.usian.api.article;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;

public interface ApAuthorControllerApi {
   //保存作者
    public ResponseResult saveApAuthor(ApAuthor  apAuthor);
    //根据用户id查询作者信息
    public ApAuthor findByUserId(Integer userId);

    public ApAuthor findByUserName(String name);

    public ApAuthor findByWmUserId(Integer userId);

 /**
  * 根据Id查询作者
  * @param id
  * @return
  */
   public ApAuthor findById(Integer id);
}
